package sy2;

import java.util.Scanner;

public class BusText {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Bus bus=new Bus("金龙","皖M88888",17);
        System.out.println("请输入要租车的天数：");
        int day=sc.nextInt();
        System.out.println("型号为："+bus.getBrand()+" 座位数为："+ bus.getSeats());
        System.out.println("租车费用："+bus.calRent(day));
    }
}
